<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page
	import="com.kylin.module.study.orm.*,com.kylin.common.*,com.kylin.common.util.*,com.kylin.common.dict.orm.Dict,com.kylin.common.paginate.DisplayPage"%>
<%@ include file="/common/include/pageExpires.jsp"%>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>

<%
	String catname = "";
	List cat_study3s = MemObjFactory.getDict(dict_cat_study3,
			sessionLocale.toString());
	for (int i = 0; i < cat_study3s.size(); i++) {
		Dict catStudy3 = (Dict) cat_study3s.get(i);
		if (catStudy3.getId().toString().equals(
		request.getParameter("catarticle")))
			catname = catStudy3.getName();
	}
%>
<table class="navi" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			| <bean:message key="study.03"/> | - |
			<%=catname%>
			|
		</td>
	</tr>

</table>
<table class="lessmsea" cellspacing="0" cellpadding="0">
	<tr>
		<form action="/module/study/article.do" method="post">
			<input name="CMD" value="search" type="hidden">
			<td>
			<input name="title" type="text" size="40">
			<input type="submit" name="Submit3" value="search">
			</td>
		</form>
	</tr>
</table>
<table class="lessmsea" cellspacing="0" cellpadding="0">
	<tr align="left" valign="top">
		<%
			int i = 0;
			for (; i < cat_study3s.size(); i++) {
				Dict catStudy3 = (Dict) cat_study3s.get(i);
				if (catStudy3 == null)
					continue;
				if (i == 0)
					out.println("<tr valign='top'>");
				else if (i > 0 && i % 4 == 0)
					out.println("</tr><tr>");
		%>
		<td width="25%">
			&#149;&nbsp;
			<a
				href="/module/study/article.do?CMD=search&catarticle=<%=catStudy3.getValue()%>"><%=catStudy3.getName()%>
			</a>
		</td>
		<%
			}
			out.println("</tr>");
		%>
	</tr>

</table>
<table class="lessmsea" cellspacing="0" cellpadding="0">

	<tr>
		<td class="lessmsea01">
			&nbsp;
		</td>
	</tr>

	<%
			if (Constants.KEY_REQUEST_RESULT != null) {
			DisplayPage dispage = (DisplayPage) request
			.getAttribute(Constants.KEY_REQUEST_RESULT);
			String ownUrl = "/module/study/article.do?CMD=search";
			i = 0;
			for (; i < dispage.getList().size(); i++) {
				Article obj = (Article) dispage.getList().get(i);
	%>
	<tr class="lessmsea03">
		<td>
			<a href="/module/study/article.do?CMD=detail&id=<%=obj.getId()%>"
				target="_blank"> <%=obj.getTitle()%> </a>
			<%
			if (obj.getAudio() != null && !obj.getAudio().equals("")) {
			%>
			<a
				href="/common/playMedia.jsp?fileType=<%=Constants.MEDIA_ARTICLE%>&fileUrl=<%=obj.getAudio()%>&imgpath<%=obj.getId()%>=<%=obj.getAudio()%>"
				target="_blank"> <img src="/images/lessonpic01.gif" width="13"
					height="13" stype="cursor:hand" /> </a>
			<%
			}
			%>
			<br>
			<%=JspHelper.substring(obj.getContent(),120,"...")%>
		</td>

		<%
				}
				out.print(JspHelper.getPageBar(dispage, ownUrl));
			} else {
				out.println("未找到记录");
			}
		%>
	